package com.walkline.weibo.dao;

import org.json.me.JSONObject;

import com.walkline.weibo.WeiboException;
import com.walkline.weibo.WeiboSDK;
import com.walkline.weibo.inf.Suggestion;

public class WeiboSuggestion extends WeiboObject implements Suggestion
{
	private long _uid = 0;
	private String _nickname = "";
	private String _remark = "";
	private String _screen_name = "";
	private int _followers_count = 0;

	public WeiboSuggestion(WeiboSDK weibo, JSONObject jsonObject) throws WeiboException
	{
		super(weibo, jsonObject);

		JSONObject suggestion = jsonObject;
		if (suggestion != null)
		{
			_uid = suggestion.optLong("uid");
			_nickname = suggestion.optString("nickname");
			_remark = suggestion.optString("remark");
			_screen_name = suggestion.optString("screen_name");
			_followers_count = suggestion.optInt("followers_count");
		}
	}

	public long getUid() {return _uid;}

	public String getUidStr() {return String.valueOf(_uid);}

	public String getNickName() {return _nickname;}

	public String getRemark() {return _remark;}

	public String getScreenName() {return _screen_name;}

	public int getFollowersCount() {return _followers_count;}
}